#ifndef _CX_MACRO_H
#define _CX_MACRO_H


/*
* macros.
*/

#define CX_PRIVATE_INLINE_FUNC(varType, varName, funName)\
	private:varType varName;\
	public: inline varType get##funName(void){ \
	return varName;\
}\
	inline void set##funName(varType var){\
	varName = var; \
}

#define CX_SAFE_DELETE(p) if(p){ delete (p); (p) = NULL;}
#define CX_SAFE_DELETE_ARRAY(p) if(p){delete [] (p); (p) = NULL;}

#define CX_BREAK_IF(cond)			if(cond) break;//conditon
#endif